package pojo;

import anno.Column;
import anno.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Table("tb_showtimes")
public class Showtime {
    @Column(isId = true)
    private Integer id;
    private Integer movieId;
    private Integer hallId;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private Double price;
    private String status;
    private LocalDateTime createdAt;

    @Column(ignore = true)
    private Hall hall;
    @Column(ignore = true)
    private Movie movie;
}